package com.hxzy.service.impl;

import com.hxzy.entity.UmsMemberRuleSetting;
import com.hxzy.mapper.UmsMemberRuleSettingMapper;
import com.hxzy.service.UmsMemberRuleSettingService;
import com.hxzy.util.MybatisUtil;
import org.apache.ibatis.session.SqlSession;

public class UmsMemberRuleSettingServiceImpl implements UmsMemberRuleSettingService {
    @Override
    public UmsMemberRuleSetting selectByPrimaryKey(Long id) {
        UmsMemberRuleSetting umsMemberRuleSetting=null;
        try (SqlSession session= MybatisUtil.getSqlSessionFactory().openSession()){
            UmsMemberRuleSettingMapper mapper = session.getMapper(UmsMemberRuleSettingMapper.class);
            umsMemberRuleSetting=mapper.selectByPrimaryKey(id);
        }
        return umsMemberRuleSetting;
    }
}
